package fr.afcepf.atod21.expedition.business;

import java.util.List;

import fr.afcepf.atod21.expedition.dao.IBasicDao;
import fr.afcepf.atod21.expedition.entity.Commande;

public class ExpeditionBusinessImpl implements IExpeditionBusiness {

	private IBasicDao<Commande> daoCommande;
	
	public void setDaoCommande(IBasicDao<Commande> daoCommande) {
		this.daoCommande = daoCommande;
	}

	@Override
	public void addCommande(Commande commande) {
		daoCommande.persist(commande);
		
	}

	@Override
	public Commande find(int id) {
		return daoCommande.find(id);
	}

	@Override
	public List<Commande> findAll() {
		return daoCommande.findAll();
	}	

}
